package com.example.supermonkeysm.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.supermonkeysm.enums.GenderEnum;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

@Data
@TableName("users")
public class User {
    private Integer id;
    private String username;
    @JsonIgnore//不发给前端
    private String password;
    private GenderEnum gender;
    private String phoneNumber;
    private String avatar;
    @TableLogic//软删除
    @JsonIgnore
    private Integer isDeleted;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}